package com.zhangpeng520.user.dao;

import com.zhangpeng520.user.entity.User;
import org.springframework.stereotype.Component;

@Component
public interface UserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);


    /**
     *
     *@Author zhangpeng(www.zhangpeng520.com)
     *@Date 2017/8/11 0011 9:55
     *@Desripition 根据用户名查找用户
     *
     */
    User selectByUsername(String username);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
}